#define ADRENALIN_EXPORTS

#include "../include/Camera.h"

namespace Adrenalin
{
	Camera::Camera(Adrenalin::stringw name)
	{
		_name = name;
	}

	void	Camera::Set(Math::Vector3<float>& eye, Math::Vector3<float>& at, Math::Vector3<float>& up, float n, float f)
	{
		_eye = eye;
		_at = at;
		_up = up;
		_near = n;
		_far = f;

		AdrenalinMain::Instance()->GetDevice()->SetPerspectiveFovLH(_eye, _at, _up, _near, _far);
	}

	void	Camera::Release()
	{
		//WRITELOG(L"Camera " + _name + " released", LOG_INFO);
	}

	stringw& Camera::Name()
	{
		return _name;
	}
};